<%@page import="java.util.Date"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Login</title>
</head>
<body>
	<form method="get" action="submeterQuestionario">
		<script>
			window.dhx_globalImgPath = "dhtmlxSlider/codebase/imgs/";
		</script>
		<script src="dhtmlxSlider/codebase/dhtmlxcommon.js"></script>
		<script src="dhtmlxSlider/codebase/dhtmlxslider.js"></script>
		<script src="dhtmlxSlider/codebase/ext/dhtmlxslider_start.js"></script>
		<link rel="STYLESHEET" type="text/css" href="dhtmlxSlider/codebase/dhtmlxslider.css">

		<div>
			<h3><b><i>NASA Task Load Index</i></b></h3>
			<h5><i>Hart and Staveland's NASA Task Load Index (TLX) method assesses
work load on five 7-point scales. Increments of high, medium and low
estimates for each point result in 21 gradations on the scales.</i></h5>
		</div>
		<%  String email = request.getParameter("email");
			String grupoId = request.getParameter("grupo");
			session.setAttribute("email", email);
			session.setAttribute("grupo", grupoId);
		%>
		<div>
			<div>
				Email:
			</div>
			<div>
				<b><% out.print((email == null) ? "" : email); %></b>
			</div>
		</div>

		<div>
			<div>
				Name:
			</div>
			<div>
				<input name="name" type="text" size="50">
			</div>
		</div>

		<div>
			<div>
				Task:
			</div>
			<div>
				<input name="task" type="text" size="50">
			</div>
		</div>

		<div>
			<div>
				Date:
			</div>
			<div>
				<b>
				<%	Date d = new Date();
					SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
					String dataFormatada = sdf.format(d);
					out.println(dataFormatada);
				%>
				</b>
			</div>
		</div>

		<br/><br/>
		<div>
			Mental Demand<span style="margin-left: 10em;" ></span>How mentally demanding was the task?
			<input name="slider1" class="dhtmlxSlider" skin="arrowgreen" min="0" max="20" step="1" type="text" style="width:500px" value="10">
			Very Low<span style="margin-left: 24em;" ></span>Very High
		</div>

		<br/><br/>
		<div>
			Physical Demand<span style="margin-left: 10em;" ></span>How physically demanding was the task?
			<input name="slider2" class="dhtmlxSlider" skin="arrowgreen" min="0" max="20" step="1" type="text" style="width:500px" value="10">
			Very Low<span style="margin-left: 24em;" ></span>Very High
		</div>

		<br/><br/>
		<div>
			Temporal Demand<span style="margin-left: 10em;" ></span>How hurried or rushed was the pace of the task?
			<input name="slider3" class="dhtmlxSlider" skin="arrowgreen" min="0" max="20" step="1" type="text" style="width:500px" value="10">
			Very Low<span style="margin-left: 24em;" ></span>Very High
		</div>

		<br/><br/>
		<div>
			Performance<span style="margin-left: 10em;" ></span>How successful were you in accomplishing what you were asked to do?
			<input name="slider4" class="dhtmlxSlider" skin="arrowgreen" min="0" max="20" step="1" type="text" style="width:500px" value="10">
			Very Low<span style="margin-left: 24em;" ></span>Very High
		</div>

		<br/><br/>
		<div>
			Effort<span style="margin-left: 10em;" ></span>How hard did you have to work to  accomplish your level of performance?
			<input name="slider5" class="dhtmlxSlider" skin="arrowgreen" min="0" max="20" step="1" type="text" style="width:500px" value="10">
			Very Low<span style="margin-left: 24em;" ></span>Very High
		</div>

		<br/><br/>
		<div>
			Frustration<span style="margin-left: 10em;" ></span>How insecure, discouraged, irritated, stressed, and annoyed were you?
			<input name="slider6" class="dhtmlxSlider" skin="arrowgreen" min="0" max="20" step="1" type="text" style="width:500px" value="10">
			Very Low<span style="margin-left: 24em;" ></span>Very High
		</div>

		<br/><br/>
		<div>
			<input type="submit" value="Submeter">
			<input type="reset" value="Limpar">
		</div>
	</form>
</body>
</html>